#include "Solution.h"
#include <iostream>

int main()
{
	string m,n;
	std::getline(cin,m);
	std::getline(cin,n);

	cout<<Solution().multiply(m,n);
	cin.get();
}